<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>

<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<div class="container_0 clearfix">
	<div class="box no-border">

		<isperp:grid url="app/dict/listByType/${typeCode }"
			gridId="${typeCode }Grid" gridTitle="${pageTitle}"
			cusFormatterActions="true" showPager="false" showSearchbar="false"
			cusDialogSize="small" cusEditUrl="app/dict/editWithTypeCode"
			beforeCreateAction="'typeCode=${typeCode }'"
			ondbClickRowEvent="${typeCode }Grid.edit(rowid);"
			cusDeleteUrl="app/dict/delete"
			loadComplete="${typeCode }Grid.jqGrid.setGridWidth($(window).width());">

			<jsp:attribute name="toolbar">
 				<isperp:toolbar id="${typeCode }Toolbar">
	 				<isperp:button id="${typeCode }Create" icon="icon-plus" text="新增"
						cssClass="nui-mainbtn" onclick="${typeCode }Grid.create();"></isperp:button>
 				</isperp:toolbar>
			</jsp:attribute>
			<jsp:body>
				<isperp:column name="id" title="id" hidden="true"></isperp:column>
				<isperp:column name="typeCode" title="应用类型编码" width="150"
					hidden="true">
				</isperp:column>
				<isperp:column name="code" title="代码" width="120">
				</isperp:column>
				<isperp:column name="name" title="名称" width="120">
				</isperp:column>
				<isperp:column name="enable" title="启用" width="50"
					isFormatterFun="true"
					formatter="return isperp.statusFormatter(cellvalue);">
				</isperp:column>
				<isperp:column name="orderNum" title="排序" width="50">
				</isperp:column>
			</jsp:body>
		</isperp:grid>
	</div>

</div>
